import { createRouter, RouteRecordRaw, createWebHashHistory } from "vue-router";
const routes: Array<RouteRecordRaw> = [
    {
        path: "/",
        name: "Home",
        redirect:'/index',
        component: () => import("../views/home/home.vue"),
        children: []
    },
    {
        path: "/:pathMatch(.*)*",
        name: "404",
        component: () => import("../views/404.vue")
    },
    {
        path: "/login",
        name: "login",
        component: () => import("../views/login.vue")
    }
]

const router = createRouter({ history: createWebHashHistory(), routes })

export default router

